﻿#include "renmianruanjian.h"
#include "ui_renmianruanjian.h"
#include <QFileDialog>
#include <QMessageBox>
#include <QDebug>
#include <QIODevice>
#include <QTextEdit>
#include <QFile>
#include <QTextStream>
#include <QTextCodec>
renmianruanjian::renmianruanjian(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::renmianruanjian)
{
    QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF8"));
    QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF8"));
    QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF8"));
    ui->setupUi(this);
}

renmianruanjian::~renmianruanjian()
{
    delete ui;
}

void renmianruanjian::on_pushButton_clicked()
{
//    QString fileName = QFileDialog :: getOpenFileName(this, NULL,NULL, "*.h *.cpp *.txt");
//    qDebug()<<fileName;
//    QFile file(fileName);
//    //--打开文件成功


}
